<?
	ob_start();
	require_once('init.php');
	require_once('dataModel.php');

	$sourceUlr="";

	if(!$_GET['f'])
	{
		$sourceUlr = "";
	}
	else
	{
		$sourceUlr = $_GET['f'];
	}

 	if ($_SESSION["Language"]=="")
 	{
 		$_SESSION["Language"]="CHINESE";
 	}
 	
 	if ($_SESSION["Language"]=="CHINESE")
	{	
		$_SESSION["Language"]="ENGLISH";
		include("language/china.php");
	}
	else if ($_SESSION["Language"]=="ENGLISH")
	{
		$_SESSION["Language"]="CHINESE";
		include("language/english.php");
	}	

	
	$sourceUlr=base64_decode($sourceUlr);	
	if (str_len($sourceUlr)>0 ) 
	{
		header("Location:".$sourceUlr);
		ob_end_flush();
	}  
	else 
	{
		header("Location:default.php");						 
	}		
	
	exit;
?>
